package com.antis.olsl.library.adapter;

import com.antis.olsl.library.R;
import com.antis.olsl.library.response.GetEmployeeInfoListResp;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;

import java.util.List;

/**
 * Created by qi.yang on 2020/3/24 0008.
 */

public class ChooseSellerAdapter extends BaseQuickAdapter<GetEmployeeInfoListResp.ContentBean, BaseViewHolder> {
    public ChooseSellerAdapter(List<GetEmployeeInfoListResp.ContentBean> data) {
        super(R.layout.item_choose_filed_type, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, GetEmployeeInfoListResp.ContentBean item) {
        helper.setText(R.id.tv_name, item.empName);
        helper.setText(R.id.text_store_code, item.empCode);
        helper.getView(R.id.img_choose).setSelected(item.choose);
    }
}
